<?php
include_once(PATH_APP_COMMON . "AuthManager.php");
class Controller_AdminExperts extends Controller_AdminList  {
	
	protected $_tplForCreate = 'Experts_Create';
	protected $_tplForEdit = 'Experts_Create';
	protected $_tplForIndex = 'Experts_Index';
	
	
	function __construct()
	{
		parent::__construct();
		$this->assign('option_domain',$this->model->optionDomain);
		$this->assign('option_type',$this->model->hashType);
	}
	
	protected function _setIndexCondition(&$conditions,&$message){
		
		$search = _gp("search","array");
	
		$like = array(
			"name" => $search['name'],
		);

		$exact = array(
			"domain" =>  intval($search['domain']),
			"type" =>  	 intval($search['type']),
		);

		$this->assign("search",$search);

		$conditions = $this->phaseConditions($like,$exact,$date,$range);

		!empty($conditions) && $message = "搜索结果:";
	}
}
